package com.dxy.dxyuser.DO;

import lombok.Data;

import javax.persistence.*;
import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * junfeng 2018/10/31 用户DO
 */
@Data
@Entity
@Table(name = "user_info")
public class UserInfo {

    @Id
    private String id;
    @NotBlank(message = "username 不能为空")
    private String username;
    private String phone;
    @NotBlank(message = "password 不能为空")
    private String password;
    private String openid;
    private Date createTime;
    private Date updateTime;

}
